﻿using BCCServer.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCCServer.IService.IChatService
{
    public interface ICommodity
    {
        /// <summary>
        /// 查询商品信息
        /// </summary>
        /// <param name="pageNumber"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        public Task<List<SCommodity>> selCommodityAsync(int pageNumber = 1, int pageSize = 20);

        public bool reduceCommodity(int Id);
        /// <summary>
        /// 添加到购物车
        /// </summary>
        /// <param name="sShoppingcart"></param>
        /// <returns></returns>
        public int addShoppingcart(SShoppingcartInput shoppingcart);


    }
}
